const debounce = function(fu,time=800){
	let timeout = null; 
	return function(){
		let that = this;
		let arg = Array.from(arguments)
		if(timeout !== null) clearTimeout(timeout);  
		timeout = setTimeout(function(){
			fu.call(that,...arg)
		},time)
	}
}
export {
	debounce
}